/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.cjava.system.service.implement;

import java.io.Serializable;
import java.util.List;
import org.cjava.system.dao.interfac.ITeacherDao;
import org.cjava.system.model.Teacher;
import org.cjava.system.service.interfac.ITeacherService;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Disjunction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

/**
 *
 * @author max
 */
public class TeacherService implements ITeacherService {
    
    @Autowired
    @Qualifier("teacherDao")
    ITeacherDao teacherDao;
    
    @Override
    public int save(Teacher object) throws Exception {
        return teacherDao.save(object);
    }

    @Override
    public void update(Teacher object) throws Exception {
        teacherDao.update(object);
    }

    @Override
    public void saveOrUpdate(Teacher object) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List listSQL(String SQL) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void delete(Teacher object) throws Exception {
        teacherDao.delete(object);
    }

    @Override
    public Teacher getById(Serializable id) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Teacher getByHQL(String HQL) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List list() throws Exception {
        return teacherDao.list();
    }

    @Override
    public List listHQL(String hql, Class clazz) throws Exception {
        return teacherDao.listHQL(hql, clazz);
    }

    @Override
    public List listHQL(String hql) throws Exception {
        return teacherDao.listHQL(hql);
    }

    @Override
    public List listHQL(String hql, int lazyChargeOption, Object object) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public int HQLexecute(String hql) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public int SQLexecute(String SQL) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List listHQL(String HQL, int firstResult, int maxResult) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List listCriterion(List<Criterion> listCriterion) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List listCriterion(List<Criterion> listCriterion, String[] alias, Disjunction disjunction) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
}
